home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 22
/
freelog 22.iso
/
Prog
/
Djgpp
/
GPC2952B.ZIP
/
doc
/
gpc
/
docdemos
/
lowdemo.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
2001-02-09
|
315 b
|
13 lines
program LowDemo;
type
Colors = (Red, Green, Blue);
var
Col: array [12 .. 20] of Colors;
Foo: 12 .. 20;
Bar: Integer;
begin
Foo := Low (Col); { returns 12 }
Col [Foo] := Low (Col [Foo]); { returns Red }
Bar := Low (Integer) { returns lowest ``Integer'' value }
end.